﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeBehind="ChucVu.aspx.cs" Inherits="WTSQCB.ChucVu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp; Quản lý chức vụ</p>
    <p>
        <asp:GridView ID="ChucVugdv" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="MaChucVu" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="980px">
            <Columns>
                <asp:CommandField ButtonType="Button" SelectText="CHỌN" ShowSelectButton="True" />
                <asp:BoundField DataField="MaChucVu" HeaderText="Mã chức vụ" ReadOnly="True" SortExpression="MaChucVu" />
                <asp:BoundField DataField="TenChucVu" HeaderText="Tên chức vụ" SortExpression="TenChucVu" />
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    </p>
    <p>
        &nbsp;
        <asp:Button ID="Thembtn" runat="server" OnClick="Thembtn_Click" Text="THÊM" Width="80px" />
        &nbsp;
        <asp:Button ID="Suabtn" runat="server" OnClick="Suabtn_Click" Text="SỬA" Width="80px" />
        &nbsp;&nbsp;
        <asp:Button ID="Xoabtn" runat="server" OnClick="Xoabtn_Click" Text="XÓA" OnClientClick="return confirm('Bạn có muốn XÓA không ?')" Width="80px"/>
    </p>
    <p>
        &nbsp;
        Thông tin chi tiết:</p>
    <p>
        &nbsp;
        Mã chức vụ:&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        <asp:TextBox ID="MaChucVutxb" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="MaChucVutxb" ErrorMessage="RequiredFieldValidator" ForeColor="Red">Mã chức vụ không được để trống</asp:RequiredFieldValidator>
    </p>
    <p>
        &nbsp;
        Tên chức vụ:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TenChucVutxb" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TenChucVutxb" ErrorMessage="RequiredFieldValidator" ForeColor="Red">Tên chức vụ không được để trống</asp:RequiredFieldValidator>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WebDiemTSQCBConnectionString %>" SelectCommand="SELECT * FROM [ChucVu]"></asp:SqlDataSource>
    </p>
</asp:Content>
